package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.field.LinkInfoPojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * @author: wufeng
 * @date: 2018/9/10 10:33
 * @desrcption: 字段描述列表--需要对比的列表，部分字段不需要，需要过滤，主要检索ExplainRelation的数据
 */
@Getter
@Setter
@ToString
public class ExplainCompareListDTO extends BaseDTO {

    private static final long serialVersionUID = -2264023038333915814L;

    /**
     * 应用id
     */
    @NotNull(message = "{dto.msg.explainCompareList.appId.NotNull}")
    private Long appId;

    /**
     * 表单id
     */
    @NotNull(message = "{dto.msg.explainCompareList.formId.NotNull}")
    private Long formId;

    /**
     * 菜单id
     */
    @NotNull(message = "{dto.msg.explainRelationList.menuId.NotNull}")
    private Long menuId;

    /**
     * 标签字段类型
     */
    @NotNull(message = "{dto.msg.explainRelationList.fieldType.NotNull}")
    private Integer fieldType;

    /**
     * @see com.xbongbong.saas.enums.XbbRefTypeEnum
     */
    private Integer businessType;

    /**
     * @see com.xbongbong.pro.enums.SaasMarkEnum
     */
    private Integer saasMark;
    /**
     * @see com.xbongbong.saas.enums.XbbRefTypeEnum
     */
    private Integer fromBusinessType;

    /**
     * 关联字段
     */
    private String linkAttr;

    private LinkInfoPojo linkInfo;

    private Integer linkedType;
}
